package com.thread;

import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;

public class JUC_CopyOnWriteListOrSet_28 {

    public static void main(String[] args) {
        CopyOnWriteArrayList<String> cl = new CopyOnWriteArrayList<>();

        CopyOnWriteArraySet<String> cs = new CopyOnWriteArraySet<>();

        cl.add("s1");

        cs.add("s2");

    }
}
